.popup {
    .light {
        position: fixed;
        top: 50%;
        width: 100%;
        height: 100%;
        transform: translateY(-50%);
        background: url(@/assets/imgs/popup/aureole.png) no-repeat -21vmin center;
        background-size: 148vmin;
        pointer-events: none;
        z-index: 2002;
    }

    .main {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80vmin;
        height: 93vmin;
        border-radius: 5vmin;
        background: url(@/assets/imgs/popup/popup-bg.png) no-repeat;
        background-size: 100% 100%;

        @mixin popupStyle {
            position: absolute;
            bottom: 0;
            width: 76vmin;
            height: 100%;
        }

        .normal {
            @include popupStyle;

            &-wrapper {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: grid;
                grid-template-rows: minmax(4vmin, auto) 1fr minmax(4vmin, auto);
                align-items: center;
                justify-items: center;
                width: 92%;
                height: 47vmin;
                margin-top: 2vmin;

                &-title {
                    line-height: 10vmin;
                    font-size: var(--normal-font-size);
                    font-weight: bold;
                    color: var(--main-color);
                    text-align: center;
                    grid-row-start: 1;
                    grid-row-end: span 1;
                }

                &-tips {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    max-width: 90%;
                    height: 10vmin;
                    grid-row-start: 3;
                    grid-row-end: span 1;

                    &_span {
                        color: #7f7f7f;
                        font-size: 3.3vmin;
                        font-weight: bold;
                        text-align: center;
                    }
                }

                &-content {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-width: 32vmin;
                    max-width: 50vmin;
                    min-height: 25vmin;
                    background-color: #fff;
                    border-radius: 5vmin;
                    box-shadow: 0px 1vmin 2vmin var(--box-shadow-color);
                    grid-row-start: 2;
                    grid-row-end: span 1;
                }

                &-btn {
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    bottom: 5vmin;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 60%;
                    height: 10vmin;
                    background-color: #f9e569;
                    color: #BA3515;
                    font-size: var(--middle-font-size);
                    font-weight: bold;
                    border-radius: 999px;
                    box-shadow: 0px 1vmin 2vmin rgba(0, 0, 0, .1);
                }
            }
        }
    }

    // 任务文字弹窗
    .popup-task-main {
        height: 110vmin;
        background: none !important;
        padding-top: 7vmin;

        &-part {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80vmin;
            height: 77vmin;
            border-radius: 5vmin;
            background: linear-gradient(to bottom, #C4DDF9, #D9BFEC);

            &::before {
                content: "";
                position: absolute;
                left: 50%;
                transform: translate(-37%, -35vmin);
                width: 55vmin;
                height: 52vmin;
                background: url('@/assets/imgs/popup/task-popup-icon.png') no-repeat center center;
                background-size: contain;
                z-index: 1;
            }

            &-wrapper {
                position: relative;
                width: 92%;
                height: 54vmin;
                background-color: #F5F6FF;
                border-radius: 4vmin;
                z-index: 2;

                &-content {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    min-width: 30vmin;
                    min-height: 20vmin;
                    transform: translate(-50%, -50%);
                    background-color: #fbf6f0;
                    border-radius: 5vmin;
                    box-shadow: 0px 1vmin 2vmin rgba(212, 211, 241, 0.5);
                    padding: 3vmin;
                    padding-top: 7vmin;

                    &_icon {
                        position: absolute;
                        top: 0;
                        transform: translateY(-65%);
                        width: 15vmin;
                    }
                }

            }

            &-btn {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 5vmin;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 60%;
                height: 13vmin;
                font-size: var(--middle-font-size);
                font-weight: bold;
                border-radius: 999px;
                box-shadow: 0px 1vmin 2vmin rgba(0, 0, 0, .1);
                color: #fff;
                background: linear-gradient(to bottom, #AE88F5, #9066FD);
                z-index: 3;
            }
        }
    }

    .tour {
        align-items: flex-end;
        background: none;
        height: 50vh;

        &-main {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            min-height: 74vmin;
            border-radius: 4vmin;
            border: 1vmin solid rgba($color: #7A71B5, $alpha: 0.45);
            background: linear-gradient(#FFFFFF, #E1E0FE);

            &::before {
                content: '';
                position: absolute;
                top: 2vmin;
                width: 100%;
                height: 32vmin;
                background: url('@/assets/imgs/tour.png') no-repeat center top;
                background-size: 100%;
                z-index: -1;
                transform: translateY(-100%);
            }

            &-title {
                display: block;
                font-size: var(--small-font-size);
                font-weight: bold;
                word-break: break-all;
                color: var(--main-color);
                width: 70vmin;
                margin-top: 3vmin;
            }

            &-content {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 70vmin;
                max-height: 49vmin;
                background-color: rgba($color: #fff, $alpha: 0.9);
                border-radius: 4vmin;
                margin-top: 3vmin;
                color: var(--main-color);
                font-size: var(--small-font-size);
            }

            &-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 35vmin;
                height: 12vmin;
                border-radius: 9999px;
                background-color: var(--main-color);
                font-size: var(--title-font-size);
                color: #fff;
            }
        }
    }
}

.lottery-popup {
    position: relative;
    width: 50vmin;
    height: 44vmin;

    .popup-slot {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 28vmin;
        height: 25vmin;
        background-color: #ffffff;
        border-radius: 5vmin;
        box-shadow: 0px 1vmin 2vmin var(--box-shadow-color);

        &.none {
            top: 14vmin;
            width: 28vmin;
        }
    }

    &-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        font-size: 4.3vmin;
        font-weight: bold;
        text-align: center;

        &.has {
            top: initial;
            left: 50%;
            bottom: 6.5vmin;
            transform: translateX(-50%);
            width: 100%;
            height: fit-content;
            font-size: 3.3vmin;
            font-weight: bold;
            text-align: center;
            color: #7f7f7f;
        }
    }
}

.popup-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    >img {
        width: 7vmin;
        height: auto;
        filter: var(--trophy-box-shadow);
    }

    >span {
        font-size: var(--normal-font-size);
        font-weight: bold;
        text-align: center;
        margin-top: 2vmin;
    }
}